package com.david.mydemo.ctl_mybatis_plus.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.david.mydemo.framework.handler.UUIDTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "project")
public class ProjectModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(value = "id", typeHandler = UUIDTypeHandler.class)
    private UUID id;
    private String name;
    private String remark;
    private String a_label;
    private String b_label;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date update_time;

}
